package com.mango.demo.test;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @Author：wlz
 * @Package：com.mango.demo.test
 * @Project：mangodemo
 * @name：CommentRepository
 * @Date：2023/3/25 23:52
 * @Filename：CommentRepository
 */
//评论的持久层接口
public interface CommentRepository extends MongoRepository<Comment,String> {

    //根据父id，查询子评论的分页列表
    Page<Comment> findByParentid(String parentid, Pageable pageable);
}
